package hmvictor.jpql.nodes;

import java.io.File;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.lookup.Lookups;

/**
 *
 * @author Victor
 */
public class JarNode extends AbstractNode {

    public JarNode(FileChildrenFactory factory) {
        super(Children.create(factory, true));
    }

    public JarNode(File jarFile) {
        super(Children.LEAF, Lookups.singleton(jarFile));
        setDisplayName(jarFile.getName());
        setShortDescription(jarFile.getAbsolutePath());
    }

}
